Top "Pragma" questions

The #pragma directives offer a way for each compiler to offer machine- and operating system-specific features while retaining overall compatibility with the C and C++ languages.

Is there a way to get the constraints of a table in SQLite?

The command "pragma table_info('tablename')" lists the columns information and "pragma foreign_key_list('tablename')" the foreign keys. How …

sqlite list constraints pragma
Why isn't C/C++'s "#pragma once" an ISO standard?

I am currently working on a big project and maintaining all those include guards makes me crazy! Writing it by …

c++ c pragma include-guards
Diferences between pragmas simd and ivdep vector always?

I am currently trying to vectorize a program and i have observed an odd behaviour Seems that a for loop …

c++ vectorization pragma icc
How to disable WAL journal mode

https://developer.apple.com/library/ios/releasenotes/DataManagement/WhatsNew_CoreData_iOS/ I am having trouble in disabling journal mode. My …

core-data ios7 pragma persistent-storage wal
C#: Is pragma warning restore needed?

From msdn I get this: #pragma warning disable warning-list #pragma warning restore warning-list In the examples, both disable and restore …

c# compiler-warnings pragma
What is the scope of a pragma directive?

What is the scope of a pragma directive? For example, if I say #pragma warning(disable: 4996) in a header file …

c++ visual-studio-2008 scope header-files pragma
Relative path with #pragma comment(lib)

Using Visual Studio 2010, I'd like to specify a path in a #pragma comment(lib) relative to the cpp file including …

c++ visual-studio-2010 linker pragma
What code have you written with #pragma you found useful?

I've never understood the need of #pragma once when #ifndef #define #endif always works. I've seen the usage of #pragma …

c++ compiler-construction pragma