Skip to content

Commit

Permalink
add mangling headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tim0s committed Oct 22, 2023
1 parent 001f7fc commit b01eea4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build/fc_mangle.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef FortranCInterface_HEADER_INCLUDED
#define FortranCInterface_HEADER_INCLUDED

/* Mangling for Fortran global symbols without underscores. */
#define FortranCInterface_GLOBAL(name,NAME) name##_

/* Mangling for Fortran global symbols with underscores. */
#define FortranCInterface_GLOBAL_(name,NAME) name##_

/* Mangling for Fortran module symbols without underscores. */
#define FortranCInterface_MODULE(mod_name,name, mod_NAME,NAME) __##mod_name##_MOD_##name

/* Mangling for Fortran module symbols with underscores. */
#define FortranCInterface_MODULE_(mod_name,name, mod_NAME,NAME) __##mod_name##_MOD_##name

#endif

0 comments on commit b01eea4

Please sign in to comment.