utils.h File Reference

(2014-04-30 15:38:09 -0400, (build fd32605))

#include <stdio.h>
#include "array.h"
#include "core.h"

Go to the source code of this file.

Namespaces

 af
 

Macros

#define top(exp)   do { _top(#exp, exp); } while (0)
 
#define stats(exp)   _stats(#exp, exp)
 
#define _printf_   printf
 
#define MSG(msg,...)
 

Functions

void _top (const char *exp, array X)
 
void _stats (const char *exp_str, const array &exp)
 
#define print(exp)   _print(#exp, exp)
 Show expression and its contents. More...
 
void _print (const char *str, const array exp)
 Display expression and its value. More...
 
#define printdims(exp)   _printdims(#exp, exp)
 Show the expression and print its dimensions. More...
 
void _printdims (const char *str, const array exp)
 Display expression and its dimensions. More...
 

Macro Definition Documentation

#define top (   exp)    do { _top(#exp, exp); } while (0)
#define stats (   exp)    _stats(#exp, exp)
#define _printf_   printf
#define MSG (   msg,
  ... 
)
Value:
do { \
_printf_(__FILE__":%d: " msg "\n", \
__LINE__, ##__VA_ARGS__); \
} while (0)
#define _printf_
Definition: utils.h:79