MCPcopy Create free account
hub / github.com/covscript/covscript / parse_gcnew

Method parse_gcnew

sources/instance/runtime.cpp:209–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 var runtime_type::parse_gcnew(const var &b)
210 {
211 if (b.is_type_of<type_t>())
212 return var::make<pointer>(b.const_val<type_t>().constructor());
213 else
214 throw runtime_error("Unsupported operator operations(GcNew).");
215 }
216
217 var runtime_type::parse_und(const var &a, const var &b)
218 {

Callers

nothing calls this directly

Calls 1

runtime_errorClass · 0.85

Tested by

no test coverage detected