mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
9737dfad34
Resolves #19
16 lines
318 B
C++
16 lines
318 B
C++
#pragma once
|
|
|
|
#ifndef JAK_LABEL_H
|
|
#define JAK_LABEL_H
|
|
|
|
class FunctionEnv;
|
|
struct Label {
|
|
Label() = default;
|
|
Label(FunctionEnv* f, int _idx = -1) : func(f), idx(_idx) {}
|
|
FunctionEnv* func = nullptr;
|
|
int idx = -1;
|
|
std::string print() const { return "label-" + std::to_string(idx); }
|
|
};
|
|
|
|
#endif // JAK_LABEL_H
|