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

Implicit declaration of function. #5

Open
ickystasis opened this issue Sep 21, 2017 · 2 comments
Open

Implicit declaration of function. #5

ickystasis opened this issue Sep 21, 2017 · 2 comments

Comments

@ickystasis
Copy link

Sorry if this is an error on my side, I don't think it is but I'm probably not the right person to be messing with this stuff.

image

@D-Pyro
Copy link

D-Pyro commented Sep 21, 2017

double min(double a, double b) {
return a<b ? a : b;
}

@MarvinOl
Copy link

MarvinOl commented Sep 22, 2017

There is no need to define a function with variable casting etc...

The "standard" way of doing this is just add this line under #include lines:
#define min(X,Y) (((X) < (Y)) ? (X) : (Y))

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

3 participants