Register global oplist for string_t.

This commit is contained in:
Patrick Pelissier committed 2017-09-14 22:56:35 +02:00
1 parent 402c0a86e0
commit 4c688c1004
2 files changed
+10

No files matched your search

+1
View File
@@ -909,6 +909,7 @@ namespace m_string {
EXT_ALGO(STRING_SPLIT) \
)
#define M_OPL_string_t() STRING_OPLIST
/* Macro encapsulation to give default value for start offset */
#define string_search_char(v, ...) \
+9
View File
@@ -24,6 +24,15 @@
#define STRING_WITHIN_TEST
#include "m-string.h"
static void test1(void)
{
M_LET(s1, s2, string_t) {
string_set_str(s1, "Success!");
string_set(s2, s1);
}
}
int main(void)
{
string_t s1;