Vuo  2.3.2
Macros

Description

Macro to emulate Go's (and Swift's) defer keyword.

Macros

#define VuoDefer
 Defers execution of the specified block until the end of scope. More...
 

Macro Definition Documentation

◆ VuoDefer

#define VuoDefer

Defers execution of the specified block until the end of scope.

Example:
FILE *a = fopen("a.txt", "r");
if (!a)
return;
VuoDefer ^{ fclose(a); };

See also http://fdiv.net/2015/10/08/emulating-defer-c-clang-or-gccblocks

Definition at line 199 of file VuoLog.h.