Skip to content

Commit

Permalink
Finish cplex
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillis committed Feb 25, 2023
1 parent 355eaf9 commit d984a35
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
using: "composite"
steps:
- run: |
curl -OL https://github.com/casadi/mockups/releases/download/v43/mockups_${{ inputs.tag }}.zip
curl -OL https://github.com/casadi/mockups/releases/download/v44/mockups_${{ inputs.tag }}.zip
unzip mockups_${{ inputs.tag }}.zip -d mockups
ls mockups
ls mockups/cmake
Expand Down
4 changes: 2 additions & 2 deletions cplex/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_name(decl):
def function_ptr(decl):
return decl[:-1].replace(get_name(decl),"(*)")

with open("include/cplex.h","w") as fout:
with open("include/ilcplex/cplexx.h","w") as fout:
fout.write("".join(preamble))
for decl in method_declarations:
fout.write("#define %s adaptor_%s\n" % (get_name(decl),get_name(decl)))
Expand All @@ -39,7 +39,7 @@ def function_ptr(decl):

fout.write("""
#define DLL_IMPLEMENTATION
#include "cplex.h"
#include "ilcplex/cplexx.h"
#include <stdlib.h>
#include <stdio.h>
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions cplex/src/cplex.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#define DLL_IMPLEMENTATION
#include "cplex.h"
#include "ilcplex/cplexx.h"

#include <stdlib.h>
#include <stdio.h>
Expand Down Expand Up @@ -391,4 +391,4 @@ int (*CPXXwriteprob)(CPXCENVptr, CPXCLPptr, char const *, char const *) = NULL;
return 1;
}
}


0 comments on commit d984a35

Please sign in to comment.