mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
24 lines
478 B
C++
24 lines
478 B
C++
#pragma once
|
|
|
|
#include "common/goos/Object.h"
|
|
#include "common/type_system/TypeSpec.h"
|
|
|
|
// note - we cannot easily reuse the GOOS argument system because GOAL's is slightly different.
|
|
// there's no rest or keyword support.
|
|
struct GoalArg {
|
|
std::string name;
|
|
TypeSpec type;
|
|
};
|
|
|
|
struct Lambda {
|
|
std::string debug_name;
|
|
std::vector<GoalArg> params;
|
|
goos::Object body;
|
|
};
|
|
|
|
struct InlineableFunction {
|
|
Lambda lambda;
|
|
TypeSpec type;
|
|
bool inline_by_default = false;
|
|
};
|