Skip to content

Commit 610a203

Browse files
Add logging
1 parent a84b00b commit 610a203

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtime/src/altv-c-api/mvalue.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ void MValue_CreateDict(alt::MValue* val, const char** keys, uint64_t size, alt::
171171
}
172172

173173
void MValue_CreateFunction(alt::MValueFunction::Invoker* val, alt::MValue &mValue) {
174-
mValue = alt::MValue(alt::MValue::Function{ val });
174+
mValue = alt::MValueFunction(val);
175+
std::cout << "type:" + std::to_string((uint8_t)mValue.GetType()) << std::endl;
175176
}
176177

177178
void MValue_CallFunction(alt::MValue* mValue, alt::MValue* args, int32_t size, alt::MValue &result) {

0 commit comments

Comments
 (0)