Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generates: culonglongint #216

Open
mantielero opened this issue Jun 21, 2021 · 0 comments
Open

Generates: culonglongint #216

mantielero opened this issue Jun 21, 2021 · 0 comments

Comments

@mantielero
Copy link

The following c++ header:

#ifndef CASADI_TYPES_HPP
#define CASADI_TYPES_HPP

#ifndef CASADI_INT_TYPE
#define CASADI_INT_TYPE long long int
#endif // CASADI_INT_TYPE


#ifndef CASADI_C_H
// Avoid interaction problems with <casadi/casadi_c.h>
#ifndef CASADI_MEM_H
// Avoid interaction problems with <casadi/mem.h>
typedef CASADI_INT_TYPE casadi_int;
#endif
#endif

#ifndef SWIG  // Not in public API
typedef unsigned CASADI_INT_TYPE casadi_uint;
#endif // SWIG

// Convert to string
#define CASADI_STR1(x) #x
#define CASADI_STR(x) CASADI_STR1(x)
#define CASADI_INT_TYPE_STR CASADI_STR(CASADI_INT_TYPE)

typedef casadi_int casadi_index;

#endif // CASADI_TYPES_HPP

generates:

type
  CasadiInt* = clonglong
  CasadiUint* = culonglongint    # <---- WRONG
  CasadiIndex* = CasadiInt

The culonglongint should be: culonglong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant