]>
git.bts.cx Git - benzene.git/blob - src/bz/types/identifier_internal.h
   1 #ifndef BZ_TYPES_IDENTIFIER_INTERNAL_H 
   2 #define BZ_TYPES_IDENTIFIER_INTERNAL_H 
   4 #include <bz/types/identifier.h> 
   6 #include <stb_sprintf.h> 
  12 #define bzInsertIdentifier(dst, fmt) \ 
  15                 va_start(args, fmt); \ 
  16                 stbsp_vsnprintf(dst, kBZMaxIdentifierLength, fmt, args); \ 
  20 #define bzMakeIdentifier(out, fmt) \ 
  21         static char out[kBZMaxIdentifierLength]; \ 
  22         bzInsertIdentifier(out, fmt);