基于六边形的jps寻路算法实现
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

21 行
368 B

#ifndef __QUIC_ATOM_H_
#define __QUIC_ATOM_H_
#include<erl_nif.h>
#define NIF_ATOM_DECL(a) ERL_NIF_TERM atom_ ## a;
#define NIF_ATOM_INIT(a) atom_ ## a = enif_make_atom(env, #a);
#define NIF_ATOMS(A) \
/* atom of common */ \
A(ok) \
A(quic) \
A(error) \
A(true) \
A(false) \
A(undefined) \
A(freed)
NIF_ATOMS(NIF_ATOM_DECL)
#endif