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.

10 lines
301 B

5 years ago
  1. #ifndef C_SRC_NIF_UTILS_H_
  2. #define C_SRC_NIF_UTILS_H_
  3. #include "erl_nif.h"
  4. ERL_NIF_TERM make_atom(ErlNifEnv* env, const char* name);
  5. ERL_NIF_TERM make_error(ErlNifEnv* env, const char* error);
  6. ERL_NIF_TERM make_binary(ErlNifEnv* env, const char* buff, size_t length);
  7. #endif // C_SRC_NIF_UTILS_H_