Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_Out should me applied only for parameters (missing error) #201

Open
thradams opened this issue Sep 1, 2024 · 0 comments
Open

_Out should me applied only for parameters (missing error) #201

thradams opened this issue Sep 1, 2024 · 0 comments

Comments

@thradams
Copy link
Owner

thradams commented Sep 1, 2024

#pragma safety enable

struct X  {
    _Out char* s;  //must be an error
};
void f(_Out int i); //error

//only for pointer to something _Out
//this includes arrays
void f(_Out char s[2]); //ok
void f(_Out char *s); //ok
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

No branches or pull requests

1 participant