NDDEM
Macros | Functions
emscripten_specific.h File Reference
#include "Preprocessor_macros.h"

Go to the source code of this file.

Macros

#define EMFUNCTION(val, name)   function( #name, &Simulation<val>::name)
 
#define EMMACRO(r, state)   EMMACRO2(BOOST_PP_TUPLE_ELEM(2, 0, state))
 
#define EMMACRO2(dim)
 

Functions

 EMSCRIPTEN_BINDINGS (my_class_example)
 

Macro Definition Documentation

◆ EMFUNCTION

#define EMFUNCTION (   val,
  name 
)    function( #name, &Simulation<val>::name)

◆ EMMACRO

#define EMMACRO (   r,
  state 
)    EMMACRO2(BOOST_PP_TUPLE_ELEM(2, 0, state))

◆ EMMACRO2

#define EMMACRO2 (   dim)
Value:
class_<Simulation<dim>>("Simulation" XSTR(dim))\
.constructor<int>()\
.EMFUNCTION(dim,finalise_init)\
.EMFUNCTION(dim,interpret_command)\
.EMFUNCTION(dim,step_forward)\
.EMFUNCTION(dim,finalise)\
.EMFUNCTION(dim,getX)\
.EMFUNCTION(dim,getRadii)\
.EMFUNCTION(dim,setRadius)\
.EMFUNCTION(dim,setMass)\
.EMFUNCTION(dim,fixParticle)\
.EMFUNCTION(dim,setFrozen)\
.EMFUNCTION(dim,getOrientation)\
.EMFUNCTION(dim,getVelocity)\
.EMFUNCTION(dim,setVelocity)\
.EMFUNCTION(dim,getRotationRate)\
.EMFUNCTION(dim,setAngularVelocity)\
.EMFUNCTION(dim,getContactForce)\
.EMFUNCTION(dim,getContactInfos)\
.EMFUNCTION(dim,getBoundary)\
.EMFUNCTION(dim,setBoundary)\
.EMFUNCTION(dim,getWallForce)\
.EMFUNCTION(dim,setExternalForce)\
.EMFUNCTION(dim,getTime)\
.EMFUNCTION(dim,randomDrop)\
;
#define XSTR(a)
Definition: Preprocessor_macros.h:18

Function Documentation

◆ EMSCRIPTEN_BINDINGS()

EMSCRIPTEN_BINDINGS ( my_class_example  )