13 lines
357 B
Plaintext
13 lines
357 B
Plaintext
% PROTEL library exported for Rust (EXPORT = extern "C" linkage)
|
|
% Rust imports protel_add with extern "C" { fn protel_add ... }.
|
|
|
|
INTERFACE protel_math;
|
|
|
|
TYPE integer {-32768 TO 32767};
|
|
|
|
DCL protel_add PROC(a integer, b integer) RETURNS integer EXPORT;
|
|
|
|
DCL protel_add PROC(a integer, b integer) RETURNS integer IS
|
|
BLOCK
|
|
RETURN a + b;
|
|
ENDBLOCK; |