You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Installation is easy. Jus add __interpreter.h__, and __interpreter.c__ files to
14
14
15
15
First you have to add the two files to your project. Than you have to create the instruction data in __interpreter.c__ file under the following comment:
16
16
17
-
'''c
17
+
'''
18
18
// +---- Create instruction data for the API ----+
19
19
// | |
20
20
// | This is where you have to add |
@@ -29,7 +29,7 @@ Use the __create_instruction_data()__ macro to add your commands to the interpre
29
29
30
30
The next step is to match the functions to your commands. You have to do it in interpreter.c file, in the init_interpreter() function, under the following comment:
31
31
32
-
'''c
32
+
'''
33
33
// +---- Match instruction to it's function ----+
34
34
// | |
35
35
// | This is where you have to match |
@@ -44,7 +44,7 @@ Use the __add_instruction()__ macro to match the name and the asociated function
44
44
45
45
The next thing you have to do is to specify the number of commands you have been added. It can be done in the __interpreter.h__ file under the following comment:
46
46
47
-
'''c
47
+
'''
48
48
// +---- Set the correct values ----+
49
49
// | |
50
50
// | NUM_OF_API_FUNCS value has |
@@ -59,7 +59,7 @@ Modify the __NUM_OF_API_FUNCS__ value to the right number unless __the program w
59
59
60
60
The last thing you have to do is to actually create your functions. A simple example function can be like this:
0 commit comments