mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-09 14:00:17 +00:00
36 lines
603 B
QBasic
36 lines
603 B
QBasic
|
$CONSOLE:ONLY
|
||
|
|
||
|
$IF WIN THEN
|
||
|
|
||
|
$IF 32BIT THEN
|
||
|
|
||
|
DECLARE STATIC LIBRARY "./lib-windows32"
|
||
|
FUNCTION add_values&(BYVAL v1 AS LONG, BYVAL v2 as LONG)
|
||
|
END DECLARE
|
||
|
|
||
|
$ELSE
|
||
|
|
||
|
DECLARE STATIC LIBRARY "./lib-windows"
|
||
|
FUNCTION add_values&(BYVAL v1 AS LONG, BYVAL v2 as LONG)
|
||
|
END DECLARE
|
||
|
|
||
|
$END IF
|
||
|
|
||
|
$ELSEIF MAC THEN
|
||
|
|
||
|
DECLARE STATIC LIBRARY "./lib-osx"
|
||
|
FUNCTION add_values&(BYVAL v1 AS LONG, BYVAL v2 as LONG)
|
||
|
END DECLARE
|
||
|
|
||
|
$ELSEIF LINUX THEN
|
||
|
|
||
|
DECLARE STATIC LIBRARY "./lib-linux"
|
||
|
FUNCTION add_values&(BYVAL v1 AS LONG, BYVAL v2 as LONG)
|
||
|
END DECLARE
|
||
|
|
||
|
$END IF
|
||
|
|
||
|
result = add_values&(2, 3)
|
||
|
PRINT result
|
||
|
SYSTEM
|