c++ - couldnt understand the use of this #define -
i new 1 project, using oracle 10g , c++. connectivity db using pro*c. when checking code, catch 1 line not @ related c++.
#define sqlca_storage_class extern i google , found oracle document http://docs.oracle.com/cd/b10501_01/appdev.920/a97269/pc_09err.htm, state...
if symbol sqlca_storage_class defined, sqlca defined have storage class. example:
#define sqlca_storage_class extern define sqlca extern.
so questions...
- what exact meaning of line?
- according document can
#definehas capability provide storage? - can use trick in our
c/c++codes?
i know presentation of question not good, want learn can use trick in our c/c++ codes.
edit : starting og .cpp file
#pragma warning(disable:4786) #define sqlca_storage_class extern #include <sqlda.h> #include <sqlca.h> #include <sys/time.h> note : want add pro*c tag here not find that. please create 1 tag that.
what exact meaning of line?
the exact meaning of #define sqlca_storage_class extern replace sqlca_storage_class extern before compilation.
according document can #define has capability provide storage?
the document doesn't talk storage, rather storage class. extern in c++ storage class specifier
can use trick in our c/c++ codes?
what trick, ? :)
Comments
Post a Comment