Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
s_internal.h File Reference
#include <thread>
#include "common/c_internal.h"
#include "cpp_api/s_base.h"
#include "threading/mutex_auto_lock.h"
+ Include dependency graph for s_internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SCRIPTAPI_LOCK_CHECK   while(0)
 
#define SCRIPTAPI_PRECHECKHEADER
 

Macro Definition Documentation

◆ SCRIPTAPI_LOCK_CHECK

#define SCRIPTAPI_LOCK_CHECK   while(0)

◆ SCRIPTAPI_PRECHECKHEADER

#define SCRIPTAPI_PRECHECKHEADER
Value:
RecursiveMutexAutoLock scriptlock(this->m_luastackmutex); \
realityCheck(); \
lua_State *L = getStack(); \
assert(lua_checkstack(L, 20)); \
StackUnroller stack_unroller(L);
Definition c_types.h:22
std::lock_guard< std::recursive_mutex > RecursiveMutexAutoLock
Definition mutex_auto_lock.h:33
#define SCRIPTAPI_LOCK_CHECK
Definition s_internal.h:61

Referenced by ClientScripting::ClientScripting(), EmergeScripting::EmergeScripting(), MainMenuScripting::MainMenuScripting(), ServerScripting::ServerScripting(), ScriptApiBase::addObjectReference(), MainMenuScripting::beforeClose(), ScriptApiPlayer::can_bypass_userlimit(), ScriptApiEnv::check_for_falling(), ScriptApiServer::createAuth(), ScriptApiDetached::detached_inventory_AllowMove(), ScriptApiDetached::detached_inventory_AllowPut(), ScriptApiDetached::detached_inventory_AllowTake(), ScriptApiDetached::detached_inventory_OnMove(), ScriptApiDetached::detached_inventory_OnPut(), ScriptApiDetached::detached_inventory_OnTake(), ScriptApiEnv::environment_OnGenerated(), ScriptApiEnv::environment_Step(), ScriptApiClient::environment_step(), ScriptApiServer::formatChatMessage(), ScriptApiServer::freeDynamicMediaCallback(), ScriptApiServer::getAuth(), ScriptApiMainMenu::handleMainMenuButtons(), ScriptApiMainMenu::handleMainMenuEvent(), ScriptApiEnv::has_on_mapblocks_changed(), ScriptApiEnv::initializeEnvironment(), ScriptApiItem::item_CraftPredict(), ScriptApiItem::item_OnCraft(), ScriptApiItem::item_OnDrop(), ScriptApiItem::item_OnPlace(), ScriptApiItem::item_OnSecondaryUse(), ScriptApiItem::item_OnUse(), ScriptApiEntity::luaentity_Activate(), ScriptApiEntity::luaentity_Add(), ScriptApiEntity::luaentity_Deactivate(), ScriptApiEntity::luaentity_GetProperties(), ScriptApiEntity::luaentity_GetStaticdata(), ScriptApiEntity::luaentity_Punch(), ScriptApiEntity::luaentity_Remove(), ScriptApiEntity::luaentity_run_simple_callback(), ScriptApiEntity::luaentity_Step(), ScriptApiNode::node_after_destruct(), ScriptApiNode::node_on_construct(), ScriptApiNode::node_on_destruct(), ScriptApiNode::node_on_dig(), ScriptApiNode::node_on_flood(), ScriptApiNode::node_on_punch(), ScriptApiNode::node_on_receive_fields(), ScriptApiNode::node_on_timer(), ScriptApiNodemeta::nodemeta_inventory_AllowMove(), ScriptApiNodemeta::nodemeta_inventory_AllowPut(), ScriptApiNodemeta::nodemeta_inventory_AllowTake(), ScriptApiNodemeta::nodemeta_inventory_OnMove(), ScriptApiNodemeta::nodemeta_inventory_OnPut(), ScriptApiNodemeta::nodemeta_inventory_OnTake(), ScriptApiPlayer::on_authplayer(), ScriptApiServer::on_chat_message(), ScriptApiPlayer::on_cheat(), ScriptApiClient::on_damage_taken(), ScriptApiPlayer::on_dieplayer(), ScriptApiClient::on_dignode(), ScriptApiServer::on_dynamic_media_added(), ScriptApiEnv::on_emerge_area_completion(), ScriptApiClient::on_formspec_input(), ScriptApiMapgen::on_generated(), ScriptApiClient::on_hp_modification(), ScriptApiClient::on_inventory_open(), ScriptApiClient::on_item_use(), ScriptApiPlayer::on_joinplayer(), ScriptApiPlayer::on_leaveplayer(), ScriptApiEnv::on_liquid_transformed(), ScriptApiEnv::on_mapblocks_changed(), ScriptApiModChannels::on_modchannel_message(), ScriptApiModChannels::on_modchannel_signal(), ScriptApiClient::on_mods_loaded(), ScriptApiMapgen::on_mods_loaded(), ScriptApiServer::on_mods_loaded(), ScriptApiPlayer::on_newplayer(), ScriptApiClient::on_placenode(), ScriptApiPlayer::on_player_hpchange(), ScriptApiPlayer::on_playerReceiveFields(), ScriptApiPlayer::on_prejoinplayer(), ScriptApiClient::on_punchnode(), ScriptApiPlayer::on_punchplayer(), ScriptApiClient::on_receiving_message(), ScriptApiPlayer::on_respawnplayer(), ScriptApiPlayer::on_rightclickplayer(), ScriptApiClient::on_sending_message(), ScriptApiClient::on_shutdown(), ScriptApiMapgen::on_shutdown(), ScriptApiServer::on_shutdown(), ScriptApiEnv::player_event(), ScriptApiPlayer::player_inventory_AllowMove(), ScriptApiPlayer::player_inventory_AllowPut(), ScriptApiPlayer::player_inventory_AllowTake(), ScriptApiPlayer::player_inventory_OnMove(), ScriptApiPlayer::player_inventory_OnPut(), ScriptApiPlayer::player_inventory_OnTake(), ScriptApiEnv::readABMs(), ScriptApiEnv::readLBMs(), ScriptApiBase::removeObjectReference(), ServerScripting::saveGlobals(), ScriptApiMainMenu::setMainMenuData(), ScriptApiServer::setPassword(), ScriptApiEnv::triggerABM(), and ScriptApiEnv::triggerLBM().