rofisys 0.2.5

This system crate provides Rust language bindings (via the use of Bindgen) to the Rust-OFI library.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef ROFI_DEBUG_H
#define ROFI_DEBUG_H

#ifdef _DEBUG
#define DEBUG_MSG(fmt, ...) \
	do { fprintf(stderr, "[%d][DEBUG][%s:%d] " fmt "\n", rt_get_rank(), __FILE__, \
		     __LINE__, ##__VA_ARGS__); } while (0)
#else
#define DEBUG_MSG(fmt, args...)
#endif

#define ERR_MSG(fmt, args...) fprintf(stderr,"[%d][ROFI ERR][%s:%d] " fmt "\n", rt_get_rank(), __FILE__, __LINE__, ##args)

#endif