Vuo  0.9.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros

Description

Macros to help with debugging.

Macros

#define VL()
 Prints the name of the file and function to the system log and to stderr (and implicitly flushes the output buffer).
 
#define VLog(format,...)
 Prints the name of the file and function, and printf()-style format/arguments, to the system log and to stderr (and implicitly flushes the output buffer).
 
#define VLV(variable)
 Prints the name of the file and function, and the summarized contents of the specified variable, to the system log and to stderr (and implicitly flushes the output buffer).
 
#define VLogHeap(heapPointer)
 Prints the name of the current file and function, and the address and description of the specified heapPointer, to the system log and to stderr (and implicitly flushes the output buffer).
 

Macro Definition Documentation

#define VL ( )

Prints the name of the file and function to the system log and to stderr (and implicitly flushes the output buffer).

Example:
void nodeEvent()
{
VL();
}
#define VLog (   format,
  ... 
)

Prints the name of the file and function, and printf()-style format/arguments, to the system log and to stderr (and implicitly flushes the output buffer).

Example:
void nodeEvent(VuoInputData(VuoInteger, "42") number)
{
VLog("%d", number);
}
#define VLogHeap (   heapPointer)

Prints the name of the current file and function, and the address and description of the specified heapPointer, to the system log and to stderr (and implicitly flushes the output buffer).

Example:
{
VLogHeap(shader);
}
#define VLV (   variable)

Prints the name of the file and function, and the summarized contents of the specified variable, to the system log and to stderr (and implicitly flushes the output buffer).

The variable can be any of the following:

  • a Vuo Core Type
  • a json_object *
  • an NSObject or subclass
  • a Core Foundation object
  • an llvm::Value or subclass
Example:
void nodeEvent(VuoInputData(VuoInteger, "42") number)
{
VLV(number);
}