/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/java/multichar_constant_runme.java
19 строк
616 B
William S Fulton
Fix multicharacter constants to have type int, not char
29 июл 2026, 21:46
29 июл 2026, 21:46
d3a2050
Код
Авторство
О чём код?
import multichar_constant.*; public class multichar_constant_runme { static { try { System.loadLibrary("multichar_constant"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e); System.exit(1); } } public static void main(String argv[]) { // Multicharacter constants have type int, not char. if (multichar_constant.MULTICHAR_AB != multichar_constant.getImulti_ab()) throw new RuntimeException("Invalid value for MULTICHAR_AB."); } }