VAULTSCRIPT VAULTSPACE Void (*VAULTAPI(MakePublic))(VAULTSPACE RawFunction(), VAULTSPACE cRawString, VAULTSPACE cRawString) VAULTCPP(noexcept);
native MakePublic(const func{}, const name{}, const def{});
Result VAULTSCRIPT MyPublic(unsigned int a, unsigned int b, const char* c) { // Public function return static_cast<Result>(a + b); } Void VAULTSCRIPT exec() noexcept { // C++ template version (type-safe, deduces type string) MakePublic(MyPublic, "MagicFunction"); }
forward MyPublic(a, b, const c{}); public MyPublic(a, b, const c{}) { // Public function return (a + b); } main() { MakePublic("MyPublic", "MagicFunction", "iis"); }
Created by Last edited by , 08-14-2012 at 09:00 PM 0 Comments, 2,238 Views |
, 10-04-2011 at 02:39 PM