mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 17:58:30 +00:00
wip vscode intellisense support
This commit is contained in:
parent
3ab76b2312
commit
9841e2186a
5 changed files with 92 additions and 2 deletions
|
@ -30,6 +30,7 @@ void gclongjmp(jmp_buf, int) nothrow wontreturn paramsnonnull();
|
|||
/**
|
||||
* Calls FN(ARG) when function returns.
|
||||
*/
|
||||
#ifndef __VSCODE_INTELLISENSE__
|
||||
#define defer(FN, ARG) \
|
||||
({ \
|
||||
autotype(ARG) Arg = (ARG); \
|
||||
|
@ -39,6 +40,7 @@ void gclongjmp(jmp_buf, int) nothrow wontreturn paramsnonnull();
|
|||
asm volatile("" : "+g"(Arg) : : "memory"); \
|
||||
Arg; \
|
||||
})
|
||||
#endif /* __VSCODE_INTELLISENSE__ */
|
||||
|
||||
void __defer(struct StackFrame *, void *, void *) hidden paramsnonnull((1, 2));
|
||||
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
#define SYMBOLIC(NAME) NAME(%rip)
|
||||
#define LITERALLY(NAME) $NAME
|
||||
/* clang-format on */
|
||||
#elif defined(__VSCODE_INTELLISENSE__)
|
||||
#define SYMBOLIC(NAME) 1
|
||||
#define LITERALLY(NAME) 1
|
||||
#else
|
||||
#define SYMBOLIC(NAME) NAME
|
||||
#define LITERALLY(NAME) NAME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue