VTK  9.4.20241118
vtkFortran.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
28#ifndef vtkFortran_h
29#define vtkFortran_h
30
31#define VTK_FORTRAN_NAME(name, NAME) name##__
32
33#define VTK_FORTRAN_ARG_STRING(__arg) const char *__arg##_string, unsigned int __arg##_length
34
35#define VTK_FORTRAN_REF_STRING_POINTER(__arg) __arg##_string
36
37#define VTK_FORTRAN_REF_STRING_LENGTH(__arg) __arg##_length
38
39#define VTK_FORTRAN_ARG_INTEGER4(data) int* data
40
41#define VTK_FORTRAN_ARG_REAL4_ARRAY_1D(array) float* array
42
43#define VTK_FORTRAN_ARG_INTEGER8(size) vtkIdType* size
44
45#define VTK_FORTRAN_REF_REAL4_ARRAY_1D(array) array
46
47#define VTK_FORTRAN_ARG_INTEGER8_ARRAY_1D(array) vtkIdType* array
48
49#define VTK_FORTRAN_REF_INTEGER8_ARRAY_1D(array) array
50
51#define VTK_FORTRAN_REF_INTEGER4(data) *data
52
53#define VTK_FORTRAN_REF_INTEGER8(data) *data
54
55#define VTK_FORTRAN_ARG_INTEGER4_ARRAY_1D(array) int* array
56
57#define VTK_FORTRAN_ARG_REAL8(t) double* t
58
59#define VTK_FORTRAN_REF_REAL8(t) *t
60
61#define VTK_FORTRAN_ARG_INT4(n) int* n
62
63#define VTK_FORTRAN_REF_INT4(n) *n
64
65#endif