gdjn  Diff

Differences From Artifact [a8262d25e1]:

To Artifact [412845665b]:


    12     12   
    13     13   typedef void (*GDExtensionInterfacePrintError)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify);
    14     14   
    15     15   #define _emit(fn, msg) \
    16     16   	(gdjn_ctx -> gd.fn((msg), __func__, __FILE__, __LINE__, true))
    17     17   #define _warn(msg) _emit(warn, msg)
    18     18   #define _err(msg)  _emit(err, msg)
           19  +
           20  +#define _emitMsg(fn, desc, msg) \
           21  +	(gdjn_ctx -> gd.fn((desc), (msg), __func__, __FILE__, __LINE__, true))
           22  +#define _errMsg(desc, msg)  _emitMsg(errMsg, desc, msg)
           23  +
    19     24   
    20     25   typedef GDExtensionBool gdBool;
    21     26   
    22     27   #define _alloc(ty, n) \
    23     28   	((typeof(ty)*)gdjn_alloc(sizeof(ty) * (n)))
    24     29   #define _realloc(v, ty, n) \
    25     30   	((typeof(ty)*)gdjn_realloc((v), sizeof(ty) * (n)))