Skip to content

fix #588: Update README to use CLAY_AUTO_ID macro - #589

Open
007ttk wants to merge 1 commit into
nicbarker:mainfrom
007ttk:main
Open

007ttk wants to merge 1 commit into
nicbarker:mainfrom
007ttk:main

Conversation

@007ttk

@007ttk 007ttk commented Mar 29, 2026

Copy link
Copy Markdown

Summary

Fixes issue #588: The README examples used the old CLAY(CLAY_ID(), {...}) syntax which is outdated.

Changes

Updated README examples to use the new CLAY_AUTO_ID({...}) syntax, which matches the current API used in examples/cpp-project-example/main.cpp.

Testing

The new syntax is already used in the official examples folder.

The README examples used the old CLAY(CLAY_ID(), {...}) syntax.
This updates them to use the new CLAY_AUTO_ID({...}) syntax
which matches the current API used in examples.
@rats159

rats159 commented Mar 29, 2026

Copy link
Copy Markdown
Contributor

I don't know what you mean here, explicit IDs are not outdated. Auto IDs also exist, but that's not what this example uses, and I don't see a reason to change it

@cD1rtX3

cD1rtX3 commented Mar 30, 2026

Copy link
Copy Markdown

No, you create it like

CLAY ({.id = CLAY_ID("OuterContainer"), /* ... */}) {

now.

@rats159

rats159 commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

No, you don't. That was removed several months ago. Are you sure you're using an up to date version? The current github release is very outdated

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants