mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
c2str
This commit is contained in:
parent
dea012a8cb
commit
940a18572c
2 changed files with 33 additions and 32 deletions
|
@ -23,7 +23,8 @@
|
|||
#define PSYC_VERSION 1
|
||||
#define PSYC_EPOCH 1440444041 // 2015-08-24 21:20:41 CET (Monday)
|
||||
|
||||
#define PSYC_C2STR(str) {sizeof(str)-1, str}
|
||||
#define PSYC_C2STR(str) (PsycString) {sizeof(str)-1, str}
|
||||
#define PSYC_C2STRI(str) {sizeof(str)-1, str}
|
||||
#define PSYC_C2ARG(str) str, sizeof(str)-1
|
||||
#define PSYC_C2ARG2(str) sizeof(str)-1, str
|
||||
#define PSYC_S2ARG(str) (str).data, (str).length
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue