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

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

// forwards
enum class LookupMode;
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