This commit is contained in:
2025-04-08 18:05:43 +08:00
parent ebab65979f
commit 02d28f223e
3 changed files with 46 additions and 16 deletions
+15
View File
@@ -12,6 +12,21 @@
],
"description": "Define template"
},
"Define swap": {
"prefix": "define_swap",
"body": [
"#define T_swap__(size, a, b) \\",
" { \\",
" void *INBLOCK_TMP = malloc(size); \\",
" memcpy(INBLOCK_TMP, a, size); \\",
" memcpy(a, b, size); \\",
" memcpy(b, INBLOCK_TMP, size); \\",
" free(INBLOCK_TMP); \\",
" }",
"#define T_swap(T) T_swap__"
],
"description": "Define swap"
},
"Define sort": {
"prefix": "define_sort",
"body": [