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

Linking with c++ #1

Closed
GoogleCodeExporter opened this issue Nov 3, 2015 · 1 comment
Closed

Linking with c++ #1

GoogleCodeExporter opened this issue Nov 3, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Linking with c++ sources is currently not possible. This should be added to
credis.h :

#if defined(__cplusplus)
#define __CREDIS_CLINKAGEBEGIN extern "C" {
#define __CREDIS_CLINKAGEEND }
#else
#define __CREDIS_CLINKAGEBEGIN
#define __CREDIS_CLINKAGEEND
#endif
__CREDIS_CLINKAGEBEGIN

[...]

__CREDIS_CLINKAGEEND

Also, some function could take a const char*, instead of a char* (eg: 2nd
argument of credis_get). This would avoid using a const_cast in c++.

Original issue reported on code.google.com by matthieu...@gmail.com on 7 Dec 2009 at 6:36

@GoogleCodeExporter
Copy link
Author

fixed in revision 12

Original comment by romf...@gmail.com on 7 Feb 2010 at 8:40

  • Changed state: Fixed

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

No branches or pull requests

1 participant