Blender V5.3
callbacks.cc File Reference
#include "BLI_listbase.hh"
#include "BKE_callbacks.hh"
#include "MEM_guardedalloc.h"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define ASSERT_CALLBACKS_INITIALIZED()

Functions

void blender::BKE_callback_exec (Main *bmain, PointerRNA **pointers, int pointers_num, eCbEvent evt)
void blender::BKE_callback_exec_null (Main *bmain, eCbEvent evt)
void blender::BKE_callback_exec_id (Main *bmain, ID *id, eCbEvent evt)
void blender::BKE_callback_exec_id_depsgraph (Main *bmain, ID *id, Depsgraph *depsgraph, eCbEvent evt)
void blender::BKE_callback_exec_boolean (Main *bmain, bool value, eCbEvent evt)
void blender::BKE_callback_exec_string (Main *bmain, const char *str, eCbEvent evt)
void blender::BKE_callback_add (bCallbackFuncStore *funcstore, eCbEvent evt)
void blender::BKE_callback_remove (bCallbackFuncStore *funcstore, eCbEvent evt)
void blender::BKE_callback_global_init ()
void blender::BKE_callback_global_finalize ()

Variables

static ListBaseT< bCallbackFuncStore > blender::callback_slots [BKE_CB_EVT_TOT] = {{nullptr}}
static bool blender::callbacks_initialized = false

Macro Definition Documentation

◆ ASSERT_CALLBACKS_INITIALIZED

#define ASSERT_CALLBACKS_INITIALIZED ( )
Value:
BLI_assert_msg(callbacks_initialized, \
"Callbacks should be initialized with BKE_callback_global_init() before using " \
"the callback system.")
#define BLI_assert_msg(a, msg)

Definition at line 24 of file callbacks.cc.

Referenced by blender::BKE_callback_add(), and blender::BKE_callback_exec().