Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "gto function":{
- "prefix": "function",
- "description": "create a new function",
- "body": [
- "${1:returnType} ${2:myNewFunction}($0)",
- "{",
- " static const char *szFctName = __FUNCTION__;",
- " ${1} ${3:returnVar} = ${4:defaultValue};",
- " ",
- " log_Write(LOG_LEVEL_DEBUG, THIS_MODULE, \"->%s\", szFctName);",
- " ",
- "SafeExit:",
- " log_Write(LOG_LEVEL_DEBUG, THIS_MODULE, \"<-%s ${3}=${5|%d,@%p,%s|}\", szFctName);",
- " return ${3};",
- "}"
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement