Skip to content

Commit

Permalink
cpp markup
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhornyak authored Jan 31, 2021
1 parent 9d30e3a commit c2e1650
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ Let's start ['Hello, world' example](https://github.com/alexzhornyak/SCXML-tutor
![hello_world](https://github.com/alexzhornyak/SCXML-tutorial/blob/master/Images/1%20-%20Hello%20world.gif)

1. Add library to project
```
```cpp
#include "UscxmlCLib.h"

#pragma comment(lib,"UscxmlCLib_borland.lib")
```

2. Set callbacks from interpreter and notifiers for main thread
```
```cpp
class TLogNotify : public TIdNotify {
const UnicodeString FMessage;

Expand All @@ -61,7 +61,7 @@ void __stdcall OnInterpreterLogCallback(const UsclibInterpreter *AInterpreter, c
```
3. Work with interprter
```
```cpp
if (USCLIB_SUCCESS != usclib_OpenInterpreter(&g_Interpreter, 0, 0, 0))
throw Exception(usclib_GetLastError());
Expand Down

0 comments on commit c2e1650

Please sign in to comment.