mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-07 09:30:15 +00:00
20 lines
308 B
QBasic
20 lines
308 B
QBasic
|
$CONSOLE:ONLY
|
||
|
|
||
|
$IF 32BIT THEN
|
||
|
|
||
|
DECLARE DYNAMIC LIBRARY "./lib32"
|
||
|
FUNCTION add_values&(BYVAL v1 AS LONG, BYVAL v2 as LONG)
|
||
|
END DECLARE
|
||
|
|
||
|
$ELSE
|
||
|
|
||
|
DECLARE DYNAMIC LIBRARY "./lib"
|
||
|
FUNCTION add_values&(BYVAL v1 AS LONG, BYVAL v2 as LONG)
|
||
|
END DECLARE
|
||
|
|
||
|
$END IF
|
||
|
|
||
|
result = add_values&(2, 3)
|
||
|
PRINT result
|
||
|
SYSTEM
|