shit c89
This commit is contained in:
Vendored
+3
-3
@@ -10,10 +10,10 @@
|
||||
"description": "Define function swap two var with macro"
|
||||
},
|
||||
"Define var swapper": {
|
||||
"prefix": "fn_var_swapper",
|
||||
"prefix": "fn_define_swapper",
|
||||
"body": [
|
||||
"#define SWAPPER(type, name) \\",
|
||||
" void name(type *a, type *b) { \\",
|
||||
"#define DEFINE_SWAPPER(type) \\",
|
||||
" void swap_##type(type *a, type *b) { \\",
|
||||
" type t = *a; \\",
|
||||
" *a = *b; \\",
|
||||
" *b = t; \\",
|
||||
|
||||
Reference in New Issue
Block a user