JNIpp 1.0
JNI meets C++
jni::VarArgs Class Reference

Information about vararg support in jni functions. More...


Detailed Description

Information about vararg support in jni functions.

All vararg jni functions are in fact template overloads with different number of arguments. That is because C++ doesn't allow passing objects to standard vararg functions (denoted with ...).

There are following limitations to the vararg arguments:

  • Maximum number of arguments is 20.
  • Allowed primitive types:
    • bool
    • signed / unsigned char (jbyte, jboolean)
    • signed / unsigned short (jchar, jshort)
    • signed / unsigned int (jint)
    • jlong
    • jfloat
    • jdouble
  • Allowed object types: