C calling convention support for Executor

This commit is contained in:
Wolfgang Thaller 2022-05-26 21:37:46 +02:00
parent f53cb0cf9e
commit 3a8acc72a7
2 changed files with 4 additions and 1 deletions

View file

@ -227,6 +227,8 @@ class ExecutorGenerator < Generator
@out << ", Register<"
handle_regcall_conv(value)
@out << ">"
elsif value["callconv"] == "C" then
@out << ", callconv::CCall"
end
@out << ">;\n"
end

View file

@ -151,7 +151,8 @@
}
},
"returnreg": { "$ref": "#/definitions/reg" },
"comment": { "type": "string" }
"comment": { "type": "string" },
"callconv": { "type": "string" }
},
"additionalProperties": false,
"required": [ "name" ]