erlang各种有用的函数包括一些有用nif封装,还有一些性能测试case。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
292 B

5 years ago
  1. #ifndef C_SRC_MACROS_H_
  2. #define C_SRC_MACROS_H_
  3. #define UNUSED(expr) do { (void)(expr); } while (0)
  4. #define DISALLOW_ASSIGN(TypeName) void operator=(const TypeName&)
  5. #define DISALLOW_COPY_AND_ASSIGN(TypeName) TypeName(const TypeName&); DISALLOW_ASSIGN(TypeName)
  6. #endif // C_SRC_MACROS_H_