Skip to content
Snippets Groups Projects
Commit 7791877c authored by Mark Winter's avatar Mark Winter
Browse files

Added script struct type-trait

parent d41c2493
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,8 @@
#define SCR_VECTOR(VarType) Script::Vector<VarType>
#define SCR_IMAGE(VarType) Script::ImageRef<VarType>
#define SCR_IMAGE_CONVERT(VarType) Script::Image<VarType>
// TODO: Fix struct type to not use DeferredType machinery
#define SCR_STRUCT Script::StructTrait<Script::DeferredType>
// Dynamic type (C++ type is inferred from input type)
#define SCR_DYNAMIC Script::DeferredType
......
......@@ -12,6 +12,7 @@ namespace Script
template <typename T> struct Vector {};
template <typename T> struct Image {};
template <typename T> struct ImageRef {};
template <typename T> struct StructTrait {};
// IO Traits (Parameter type, output, input, optional input)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment