Skip to content

pragma entry_point

IsaacShelton edited this page Mar 21, 2022 · 1 revision

pragma entry_point

pragma entry_point is a pragma directive that can be used to set the entry point of the program

pragma entry_point myEntryFunction

pragma entry_point must be used before any function declarations.

Usage Example

pragma entry_point myEntryPoint

import "basics.adept"

func myEntryPoint {
    print("Hello World!")
}

See --entry in command-line usage for compiler argument

Clone this wiki locally