mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
abcd444a3b
* initial deftype implementation * fix library setup for windows * implement deftype * fix memory bug * fix formatting
22 lines
405 B
C++
22 lines
405 B
C++
#pragma once
|
|
|
|
#ifndef JAK_LAMBDA_H
|
|
#define JAK_LAMBDA_H
|
|
|
|
#include "common/goos/Object.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;
|
|
};
|
|
|
|
#endif // JAK_LAMBDA_H
|