Skip to content

Add preprocessor support #73

Description

@monstermichl

Some kind of preprocessor support should be added to include unsafe/native code only in the output where it's really needed. This could be implemented similar to the C-preprocessor. E.g.

#if TYPESHELL_TARGET == "batch"
unsafe(`for %%U in ({0}) do (
	set "{o:1}=%%~zU"
	set "{o:2}=%%~tU"
	set "{o:3}=%%~aU"
)`, entry, sizeString, date, attributes)
#end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions