Made WINAPI (stdcall) the default calling convention. Hopefully this will opt us into some compiler optimizations... hopefully.

This commit is contained in:
Pietro Gagliardi 2018-05-27 20:44:34 -04:00
parent eef179c1e5
commit ea5bd79b89
1 changed files with 3 additions and 4 deletions

View File

@ -36,6 +36,7 @@ Function::Function(ByteSlice line)
} }
start = 2; start = 2;
this->callingConvention = ByteSlice().AppendString(u8"WINAPI");
this->name = fields[1]; this->name = fields[1];
if (fields.size() % 2 == 1) { if (fields.size() % 2 == 1) {
start = 3; start = 3;
@ -61,10 +62,8 @@ ByteSlice Function::Signature(void) const
out = ByteSlice(0, nfuncoutbuf); out = ByteSlice(0, nfuncoutbuf);
out = out.AppendString(u8"HRESULT "); out = out.AppendString(u8"HRESULT ");
if (this->callingConvention.Len() != 0) { out = out.Append(this->callingConvention);
out = out.Append(this->callingConvention); out = out.AppendString(u8" ");
out = out.AppendString(u8" ");
}
out = out.Append(this->name); out = out.Append(this->name);
out = out.AppendString(u8"("); out = out.AppendString(u8"(");