-1
This commit is contained in:
Vendored
+15
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user