aboutsummaryrefslogtreecommitdiff
path: root/src/state.h
blob: 98bb47b4c85dfbd30d67ff17e8f02056fe662203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "debugspew.h"
#include "macros_and_utils.h"

// forwards
enum class LookupMode;
class Universe;

namespace state {

    void CallOnStateCreate(Universe* U_, lua_State* L_, lua_State* from_, LookupMode mode_);
    [[nodiscard]] lua_State* CreateState(Universe* U_, lua_State* from_, std::string_view const& hint_);
    void InitializeOnStateCreate(Universe* U_, lua_State* L_);
    [[nodiscard]] lua_State* NewLaneState(Universe* U_, SourceState from_, std::optional<std::string_view> const& libs_);

} // namespace state