Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
Prevent error for compiler specs without __stdcall
Browse files Browse the repository at this point in the history
  • Loading branch information
astrelsky committed Dec 28, 2020
1 parent 6cca357 commit bac3d9d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,15 @@ private void findAndCreatePureVirtualFunction() throws Exception {
if (pureVirtual == null) {
return;
}
String cc = GenericCallingConvention.stdcall.getDeclarationName();
pureVirtual.setName(PURE_VIRTUAL_FUNCTION_NAME, SourceType.IMPORTED);
pureVirtual.setNoReturn(true);
pureVirtual.setReturnType(VoidDataType.dataType, SourceType.IMPORTED);
pureVirtual.setCallingConvention(cc);
try {
String cc = GenericCallingConvention.stdcall.getDeclarationName();
pureVirtual.setCallingConvention(cc);
} catch (Exception e) {
// compiler spec doesn't have __stdcall
}
}

private void createVtable(GnuVtable vtable) throws Exception {
Expand Down

0 comments on commit bac3d9d

Please sign in to comment.