LeviLamina
Loading...
Searching...
No Matches
MolangProgramBuildState.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Molang::details { class IInstruction; }
8namespace brstd { struct source_location; }
9// clang-format on
10
11namespace Molang::details {
12
13struct MolangProgramBuildState {
14public:
15 // member variables
16 // NOLINTBEGIN
20 // NOLINTEND
21
22public:
23 // prevent constructor by default
24 MolangProgramBuildState& operator=(MolangProgramBuildState const&);
25 MolangProgramBuildState(MolangProgramBuildState const&);
26 MolangProgramBuildState();
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCNAPI uint64 allocateInstruction();
32
33 MCNAPI void emplaceInstruction(::std::unique_ptr<::Molang::details::IInstruction> instruction);
34
36 uint64 instructionIndexToPutThisInstruction,
37 uint64 instructionToJumpTo,
38 float mulValue,
39 float addValue,
41 );
42
43 MCNAPI void popForEachScope(uint64 instructionIndex);
44
45 MCNAPI void popLoopScope(uint64 instructionIndex);
46
47 MCNAPI void pushLoopScope(
48 uint64 loopScopeInitializationInstructionIndex,
49 uint64 loopRepeatLogicInstructionIndex,
50 uint64 loopCleanupInstructionIndex,
51 uint64 nextStatementIndex,
53 );
54
56
57 MCNAPI void setReturnValue(float value, ::brstd::source_location source);
58
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCNAPI void $dtor();
66 // NOLINTEND
67};
68
69} // namespace Molang::details
Definition IInstruction.h:12
MCAPI void popLoopScope(uint64 instructionIndex)
MCAPI void popForEachScope(uint64 instructionIndex)
MCAPI void insertJumpWithMaddAtIndex(uint64 instructionIndexToPutThisInstruction, uint64 instructionToJumpTo, float mulValue, float addValue, ::brstd::source_location source)
MCAPI void setReturnValue(float value, ::brstd::source_location source)
MCAPI void pushLoopScope(uint64 loopScopeInitializationInstructionIndex, uint64 loopRepeatLogicInstructionIndex, uint64 loopCleanupInstructionIndex, uint64 nextStatementIndex, ::brstd::source_location source)
MCAPI void pushReturnValue(::brstd::source_location source)
MCAPI void emplaceInstruction(::std::unique_ptr<::Molang::details::IInstruction > instruction)
Definition source_location.h:7
Definition Alias.h:14