Inline Code

This MotoHawk™ block provides for simple inlining of C statements into the generated code.

Block ID

motohawk_inline_code

Library

MotoHawk_lib/Extra Development Blocks

Description

This block provides for simple inserting of C statements into the generated code. The Include section will be inserted at the top of the main include file The Start section will be inserted into the mdlStart function The Output section will be inserted into the mdlOutput function. Note that each of these parameters is evaluated, so strings must be enclosed in single quotes. This allows workspace variables be evaluated for code generation.

Block Parameters

Parameter Field Values Comments/Description
Include Alpha-numeric text, single-quote enclosed. Indicate source to include (example: '#include "myfile.h"' )
Start Alpha-numeric text, single-quote enclosed. Indicate "Start" section to insert into the mdlStart function. 
Output Alpha-numeric text, single-quote enclosed. Indicate "Output" section to insert into the mdlOutput function.