Add example of separating inline & function code

This commit is contained in:
Patrick Pelissier authored and Patrick Pelissier committed 2023-06-11 23:32:02 +02:00
1 parent 17ded6fcc8
commit 53af2aae68
7 files changed
+85 -1

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#ifndef MY_HEADER
#define MY_HEADER
// Request M*LIB to not always inline functions
#define M_USE_EXTERN_FINE_GRAINED 1
#include "m-string.h"
#include "m-array.h"
// The following functions will not be inlined:
#undef M_USE_EXTERN_FINE_SELECT
#ifdef EXN_LIB
#define M_USE_EXTERN_FINE_SELECT 3
#else
#define M_USE_EXTERN_FINE_SELECT 2
#endif
ARRAY_DEF(array_str, string_t)
#endif