Vuo  0.4.9
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros
module.h File Reference

Description

Prototypes for node class, type, and library module implementations.

Macros

#define VuoModuleDetails(...)   const char *moduleDetails = #__VA_ARGS__
 Name, version, and behavior information to be defined by node classes, port types, and library modules.
 
#define VL()   fprintf(stderr, "\033[38;5;%dm# pid=%d\t%s:%d :: %s()\033[0m\n", getpid()%212+19, getpid(), __FILE__, __LINE__, __func__);
 Prints the name of the file and function to stderr (and implicitly flushes the output buffer).
 
#define VLog(format,...)   fprintf(stderr, "\033[38;5;%dm# pid=%d\t%s:%d :: %s()\t" format "\033[0m\n", getpid()%212+19, getpid(), __FILE__, __LINE__, __func__, ##__VA_ARGS__);
 Prints the name of the file and function, and printf()-style format/arguments, to stderr (and implicitly flushes the output buffer).
 
#define VLogHeap(heapPointer)   VLog("%s = %p (registered at %s)", #heapPointer, heapPointer, VuoHeap_getDescription(heapPointer));
 Prints the name of the current file and function, and the address and description of the specified heapPointer, to stderr (and implicitly flushes the output buffer).
 
#define VLogCF(coreFoundationRef)   { CFStringRef d = CFCopyDescription(coreFoundationRef); CFIndex len = CFStringGetLength(d)+1; char *z = (char *)malloc(len); CFStringGetCString(d, z, len, kCFStringEncodingUTF8); VLog("%s = %s", #coreFoundationRef, z); free(z); CFRelease(d); }
 Prints the specified Core Foundation object.
 
#define MIN(a, b)   (((a)<(b))?(a):(b))
 Returns the smaller of a and b.
 
#define MAX(a, b)   (((a)>(b))?(a):(b))
 Returns the larger of a and b.
 

Macro Definition Documentation

#define MAX (   a,
 
)    (((a)>(b))?(a):(b))

Returns the larger of a and b.

#define MIN (   a,
 
)    (((a)<(b))?(a):(b))

Returns the smaller of a and b.