The following tokens are recognized by the preprocessor outside the context of a preprocessor directive
Następujące klucze są rozpoznawane, przez preprocesor, poza kontekstem dyrektywy
C++03 provides two methods to test assertions: the macro assert and the preprocessor directive #error.
Starszy standard C++ posiada dwie metody do testowania asercji: makro assert i dyrektywa preprocesora #error.
However, neither is appropriate for use in templates: the macro tests the assertion at execution-time, while the preprocessor directive tests the assertion during preprocessing, which happens before instantiation of templates.
Jednak żaden z nich nie jest odpowiedni do używania w szablonach: makro testuje asercje w czasie wykonywania kodu, a dyrektywa preprocesora testuje w fazie preprocesorowej, czyli przed tworzeniem instancji szablonów.
The first example is similar to the preprocessor directive #error, although the preprocessor does only support integral types. In contrast, in the second example the assertion is checked at every instantiation of the template class Check.
Poniżej pokazane są dwa przykłady używania Pierwszy przykład stanowi alternatywę dla dyrektywy preprocesora #error; dla porównania, drugi przykład pokazuje jak asercja jest sprawdzana podczas każdego instancjonowania klasy szablonowej Check.
It is a preprocessor directive, which tells you which GLSL version we are going to use.
Jest to dyrektywa preprocesora, która mówi o tym, z jakiej wersji GLSL'a mamy zamiar korzystać (lub jest napisany dany shader).
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.