sc_value_raises_t sc_typify_template(sc_value_t f, int numtypes, const sc_type_t *typeargs) { using namespace scopes; SCOPES_C_RESULT_TYPE(Value); auto tf = SCOPES_C_GET_RESULT(extract_template_constant(f)); if (is_inline(tf)) { SCOPES_C_ERROR(CannotTypeInline); } Types types; for (int i = 0; i < numtypes; ++i) { types.push_back(typeargs[i]); } SCOPES_C_RETURN(prove({}, tf, types)); }
https://cdn.masto.host/mastodongamedevplace/media_attachments/files/114/377/211/390/296/002/original/db024bb34932d467.png