GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
cdef-manager.cc File Reference
#include "cdef-manager.h"
#include "cdef-utils.h"
#include "interpreter.h"
#include "ov-classdef.h"

Go to the source code of this file.

Macros

#define META_CLASS_CMP(OP, CLSA, CLSB, FCN)
 

Macro Definition Documentation

◆ META_CLASS_CMP

#define META_CLASS_CMP (   OP,
  CLSA,
  CLSB,
  FCN 
)
Value:
static octave_value_list \
class_ ## OP (const octave_value_list& args, int /* nargout */) \
{ \
octave_value_list retval; \
\
if (args.length () != 2 \
|| args(0).type_name () != "object" \
|| args(1).type_name () != "object" \
|| args(0).class_name () != "meta.class" \
|| args(1).class_name () != "meta.class") \
error (#OP ": invalid arguments"); \
\
cdef_class clsa = to_cdef (args(0)); \
\
cdef_class clsb = to_cdef (args(1)); \
\
retval(0) = FCN (CLSA, CLSB); \
\
return retval; \
}
cdef_object to_cdef(const octave_value &val)
Definition: cdef-utils.cc:143
@ FCN
Definition: oct-parse.h:135

Definition at line 175 of file cdef-manager.cc.