pbc_utils.h

来自「这是一个C的源代码」· C头文件 代码 · 共 22 行

H
22
字号
#ifndef __PBC_UTIL_H__#define __PBC_UTIL_H__// from the ACE project: http://www.cs.wustl.edu/~schmidt/ACE.html// silences warnings, and generates no code for many compilers// See ACE_wrappers/ace/ace/config-macros.h:391#define UNUSED_VAR(a) do { /* nothing */ } while (&a == 0)// I was using this before (and without macros)://#define UNUSED_VAR(a) (void) a//for storing small integers in void *//see http://www.gelato.unsw.edu.au/archives/linux-ia64/0008/0344.htmlstatic inline void *int_to_voidp(int i){    //TODO: this won't work on some platforms     //assert(sizeof(long) == sizeof(void *));    return (void *) (long) i;}#endif //__PBC_UTIL_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?