Search notes:

Predefined preprocessor macro __COUNTER__

__COUNTER__ is a non-standard compiler extension for the GNU compiler. Apparently, it's also implemented in Microsoft's compiler and the clang compiler.
__COUNTER__ evaluates to an integer literal whose value is increased by one every time it is found in a source code text.

variables.h

int a = __COUNTER__;
int b = __COUNTER__;
int c = __COUNTER__;
Github repository about-cpp, path: /preprocessor/macros/predefined/__COUNTER__/variables.h

main.c

#include "variables.h"
#include <stdio.h>

int main() {
  printf("__COUNTER__=%d\n", __COUNTER__);
  printf("a=%d, b=%d, c=%d\n", a, b, c);
}
Github repository about-cpp, path: /preprocessor/macros/predefined/__COUNTER__/main.c

See also

Preprocessor: macros

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745938597, '3.21.34.100', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/C-C-plus-plus/preprocessor/macros/predefined/__COUNTER__(61): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78