Skip to content

WOKWI compile time #define #1058

@danie1kr

Description

@danie1kr

Hi all,
I searched for the feature of having a compile time define for WOKWI but did not find any in the documentation, git issues or project page.

Is your feature request related to a problem? Please describe.
I want to copy my code 1:1 from wokwi into Visual Studio for real world compilation on my board. To not miss anything, I would like to have an compile time define (-DWOKWI) or something, so both compilers can distinguish between the WOKWI compilation and the real world compilation.
For example, I exculde WiFi and OTA stuff on WOKWI, but rely on this in my real world application.

Describe the solution you'd like
Add a compile time define -DWOKWI (or the like) to the compile backend for your code.

Thanks you very much
Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions