Register global oplist for string_t.
This commit is contained in:
1 parent
402c0a86e0
commit
4c688c1004
2 files changed
+10
No files matched your search
@@ -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, ...) \
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user