Add smart.js repo to srcfs

PUBLISHED_FROM=ebcd95607742a327cc0f453681f576982a8f027d
This commit is contained in:
Marko Mikulicic
2016-03-21 22:45:51 +00:00
committed by rojer
parent a43709b4a8
commit ccf67dbf05
2 changed files with 15 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
---
title: "MG_MK_STR()"
decl_name: "MG_MK_STR"
symbol_kind: "func"
signature: |
#define MG_MK_STR(str_literal);
---
Macro for initializing mg_str.
+5 -4
View File
@@ -1,10 +1,11 @@
---
title: "MG_MK_STR()"
decl_name: "MG_MK_STR"
title: "mg_mk_str()"
decl_name: "mg_mk_str"
symbol_kind: "func"
signature: |
#define MG_MK_STR(str_literal);
struct mg_str mg_mk_str(const char *s);
---
Macro for initializing mg_str.
A helper function for creating mg_str struct from plain C string.
`NULL` is allowed and becomes `{NULL, 0}`.