source: branches/r9/lang/octave/RpOctaveInterface.h.in @ 4867

Last change on this file since 4867 was 3362, checked in by ldelgass, 11 years ago

Merge nanovis2 branch to trunk

File size: 1.2 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 *  INTERFACE: Rappture-Octave Bindings Header
4 *
5 * ======================================================================
6 *  AUTHOR:  Derrick Kearney, Purdue University
7 *  Copyright (c) 2005-2007
8 *  Purdue Research Foundation, West Lafayette, IN
9 * ======================================================================
10 */
11
12#ifndef _Rp_OCTAVE_HELPER_H
13#define _Rp_OCTAVE_HELPER_H
14
15#include "rappture.h"
16#include "RpBindingsDict.h"
17
18// include the octave api header
19#include "octave/oct.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#ifdef __cplusplus
26}
27#endif
28
29// octave versions before 3.0 used a version of the
30// print_usage function that accepted a parameter
31// telling the name of the function to print the
32// usage of. octave 3.0 introduced a print_usage()
33// function that automatically finds the name of
34// the function it is being called from.
35#define OCTAVE_VERSION_MAJOR @OCTAVE_VERSION_MAJOR@
36#if (OCTAVE_VERSION_MAJOR >= 3)
37    #define _PRINT_USAGE(x) print_usage()
38#else
39    #define _PRINT_USAGE(x) print_usage(x)
40#endif // (OCTAVE_VERSION_MAJOR >= 3)
41
42#endif // _Rp_OCTAVE_HELPER_H
Note: See TracBrowser for help on using the repository browser.