@@ -180,6 +180,9 @@ The SPLICECAPI provides several global functions. These can be used to initializ
180
180
// creates a RTVal given a KL object name and construction args
181
181
FabricCore::RTVal constructObjectRTVal(const char * rt, uint32_t nbArgs, const FabricCore::RTVal * args);
182
182
183
+ // creates a KL interface RTVal given a KL object to cast
184
+ FabricCore::RTVal constructInterfaceRTVal(const char * rt, const FabricCore::RTVal & object);
185
+
183
186
// creates a Boolean RTVal given its value
184
187
FabricCore::RTVal constructBooleanRTVal(bool value);
185
188
@@ -1701,6 +1704,7 @@ FECS_DECL void FECS_ConstructRTVal(FabricCore::RTVal & result, const char * rt);
1701
1704
FECS_DECL void FECS_ConstructRTValArgs (FabricCore::RTVal & result, const char * rt, uint32_t nbArgs, const FabricCore::RTVal * args);
1702
1705
FECS_DECL void FECS_ConstructObjectRTVal (FabricCore::RTVal & result, const char * rt);
1703
1706
FECS_DECL void FECS_ConstructObjectRTValArgs (FabricCore::RTVal & result, const char * rt, uint32_t nbArgs, const FabricCore::RTVal * args);
1707
+ FECS_DECL void FECS_ConstructInterfaceRTValArgs (FabricCore::RTVal & result, const char * rt, const FabricCore::RTVal & object);
1704
1708
FECS_DECL void FECS_ConstructBooleanRTVal (FabricCore::RTVal & result, bool value);
1705
1709
FECS_DECL void FECS_ConstructSInt8RTVal (FabricCore::RTVal & result, int8_t value);
1706
1710
FECS_DECL void FECS_ConstructSInt16RTVal (FabricCore::RTVal & result, int16_t value);
@@ -2112,6 +2116,15 @@ namespace FabricSplice
2112
2116
return result;
2113
2117
}
2114
2118
2119
+ // creates a KL interface RTVal given a KL object to cast
2120
+ inline FabricCore::RTVal constructInterfaceRTVal (const char * rt, const FabricCore::RTVal & object)
2121
+ {
2122
+ FabricCore::RTVal result;
2123
+ FECS_ConstructInterfaceRTValArgs (result, rt, object);
2124
+ Exception::MaybeThrow ();
2125
+ return result;
2126
+ }
2127
+
2115
2128
// creates a Boolean RTVal given its value
2116
2129
inline FabricCore::RTVal constructBooleanRTVal (bool value)
2117
2130
{
0 commit comments