Call a foreign-language function: Difference between revisions

Line 307:
 
=={{header|Modula-2}}==
'''The first file (Vga.c) creates the function prototypes'''.
The next file is the definition module, but in this context it is called a FOREIGN MODULE.
The third file is an example program.
<lang Modula-2>
 
'''file Vga.c creates function prototypes'''
#include <vga.h>
 
Line 379 ⟶ 382:
 
----
 
'''Now create a DEFINITION MODULE to match the Vga.c file'''''Italic text''
FOREIGN MODULE Vga;
 
Line 415 ⟶ 418:
----
 
''And now use the new foreign functions:'''''Bold text'''
MODULE svg01;
 
Anonymous user