aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/meta/compiler/target/c++/type.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/meta/compiler/target/c++/type.lux8
1 files changed, 7 insertions, 1 deletions
diff --git a/stdlib/source/library/lux/meta/compiler/target/c++/type.lux b/stdlib/source/library/lux/meta/compiler/target/c++/type.lux
index e8365ff52..3ee6de6fb 100644
--- a/stdlib/source/library/lux/meta/compiler/target/c++/type.lux
+++ b/stdlib/source/library/lux/meta/compiler/target/c++/type.lux
@@ -3,7 +3,7 @@
(.require
[library
- [lux (.except char int)
+ [lux (.except char int function)
[meta
[macro
["[0]" template]]]]]
@@ -93,3 +93,9 @@
(|>> list
(/.global [(list /.standard) "shared_ptr"])
/.type))
+
+(def .public (function arguments return)
+ (-> (List /.Parameter) /.Parameter
+ /.Type)
+ (/.type (/.global [(list /.standard) "function"]
+ (list (/.function_type_parameter arguments return)))))