Updated C Interoperability and Type Casting (markdown) authored by williamfgc's avatar williamfgc
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
C++ --> C --> JNI --> Java --> JNI --> C --> C++ C++ --> C --> JNI --> Java --> JNI --> C --> C++
``` ```
3. <strong>Avoid C-style casting:</strong> use C++11 style casting: ```static_cast, dynamic_cast (classes), reinterpret_cast``. 3. <strong>Avoid C-style casting:</strong> use C++11 style casting: ```static_cast, dynamic_cast (classes), reinterpret_cast```.
* Don't * Don't
```cpp ```cpp
int foo = ( int ) bar; int foo = ( int ) bar;
... ...
......