13 lines
340 B
Plaintext
13 lines
340 B
Plaintext
% PROTEL library exported for Swift (EXPORT = extern "C" linkage)
|
|
% Swift imports protel_add with @_silgen_name.
|
|
|
|
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; |