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

#include "debugspew.hpp"
#include "macros_and_utils.hpp"

// forwards
class Universe;

namespace state {
    [[nodiscard]]
    lua_State* CreateState(Universe* U_, lua_State* from_, std::string_view const& hint_);
    [[nodiscard]]
    lua_State* NewLaneState(Universe* U_, SourceState from_, std::optional<std::string_view> const& libs_);
    LUAG_FUNC(supported_libs);
} // namespace state