ndesktop wrote:In my CEF fork, I added a cef_version(_ex) (C++: bool CefVersion(int component, int* value) and bool CefVersionEx(cef_version_info_t* version) ) with a set of constants (chrome major version, minor, patch, is fork etc.) for first version and all of them in a structure for the second "ex" version. Is pretty much similar with GetVersionEx or GetDllVersion functions.
Thanks, this looks (also) useful, but to check for debug/release mismatch (which can't happen under Windows, BTW, as you'd get linking errors there in this case), there should also be a parameter/struct field indicating whether the library was built in debug or not.
In fact, thinking more about this, it would also be possible to artificially introduce linking errors in Linux version too, by defining some cef_check_debug() only in debug builds and cef_check_release() only in release ones and calling one of them from the application depending on the value of NDEBUG it was compiled with (this could be hidden in a macro). This would be even simpler, although less flexible than calling a function during run-time.
Would it be possible to add something like this to CEF?