Jump to content

Header files


Stremik

Recommended Posts

You could create a new VOP type. In the VEX Code Tab under Outer Code you would add your header

#include "StremikSuperHeader.h"

In order to avoid function name collisions, (among other things), make sure you add the "$" in front of your function name in the header file.

vector $makeSpiffyColor( .... ... ... )

If you make a new VOP type for the sole purpose of adding a header make sure you check "Force Code Generation".

jim.

Link to comment
Share on other sites

On second thought, instead of using #include in the Outer VEX Code wouldn't it be better just to include the contents of your header in VOP Operator instead? That way you don't have to worry about the header file, its neatly placed inside the OTL.

jim.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...