Skip to content

Commit

Permalink
Update specification a bit. Updated link in "haven't installed"
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Mar 4, 2024
1 parent 139d96a commit 239743d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/guide/my-first-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Let's create our first C3 project. We will create a simple calculator app that w
But before that we need to install C3C, the compiler for C3.

:::note[Haven't installed C3C yet?]
You can follow [this link](references/getting-started/prebuilt-binaries/) to install the compiler on Mac, Windows and Linux.
You can follow [this link](/references/getting-started/prebuilt-binaries/) to install the compiler on Mac, Windows and Linux.
:::
## Creating a new project

Expand Down
24 changes: 23 additions & 1 deletion src/content/docs/references/docs/specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ Attributes are modifiers attached to modules, variables, type declarations etc.
| @bigendian | bitstruct only |
| @builtin | macro, fn, global, constant |
| @callconv | fn, call |
| @deprecated | fn, macro, variables, constants, user-defined types, struct member |
| @deprecated | fn, macro, interface, variables, constants, user-defined types, struct member |
| @dynamic | fn |
| @export | fn, globals, constants, struct, union, enum, fault |
| @extern | fn, globals, constants, user-defined types |
Expand All @@ -1562,6 +1562,7 @@ Attributes are modifiers attached to modules, variables, type declarations etc.
| @nostrip | fn, globals, constants, struct, union, enum, fault |
| @obfuscate | enum, fault |
| @operator | fn, macro |
| @optional | interface methods |
| @overlap | bitstruct only |
| @packed | struct, union |
| @priority | initializer/finalizer |
Expand All @@ -1576,6 +1577,27 @@ Attributes are modifiers attached to modules, variables, type declarations etc.
| @weak | fn, globals, constants |
| @winmain | fn |

#### @deprecated

Takes an optional constant string.
If the node is in use, print the deprecation and add the optional string if present.

#### @optional

Marks an *interface* method as optional, and so does not need to be implemented by
a conforming type.

#### @winmain

Marks a `main` function as a win32 winmain function, which is the entrypoint for a windowed
application on Windows. This allows the main function to take a different set of
arguments than usual.

#### @callconv

`@callconv` can be used with a function or a call. It takes a constant string which is either "veccall", "stdcall" or "cdecl". If more than one `@callconv`
is applied to a function or call, the last one takes precedence.

### User defined attributes

User defined attributes group a list of attributes.
Expand Down

0 comments on commit 239743d

Please sign in to comment.