| CARVIEW |
Select Language
HTTP/2 200
date: Wed, 31 Dec 2025 07:43:19 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/vlang/v.git
etag: W/"57d10c63d2b83d98a5e56660f090d89b"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=DFKXlzT9CEDfHlOU5Gdp6%2B%2F0%2Fzx%2Fl7fANuDNixm5Tovdy5r2%2Beff8DqZ9iQz1cBWqQ15eJ9CU%2BCRbHp7TZ274aH1gL8XH6R7awaEGbkGw%2BrMGiaoH6LTQYk2hY400bmsYwDA8TLm7cxgU%2BskRePda6XvBqCKUJ0xnviVSnK1%2BfT7VzQ6b88MjuvyuiIKCAw8pbo4mFisJsEr%2F%2B%2FQYl5pN9bqgofTRC%2FxBlxePob4GWBGPmEMAucXWvMxctTLuMjFusqg8IsJ6ZiGwQsRI8ejOg%3D%3D--Ame2IAZ4lIA9hud2--PEi3VnzaxnVum4plsVz0pA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.512895684.1767166998; Path=/; Domain=github.com; Expires=Thu, 31 Dec 2026 07:43:18 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 31 Dec 2026 07:43:18 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DE2C:198711:17F1EFC:1B0F06D:6954D416
v: virtual C consts with custom types (const C.MY_CONST u8) · vlang/v@9ef51ee · GitHub
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit 9ef51ee
committed
v: virtual C consts with custom types (const C.MY_CONST u8)
1 parent 3725576 commit 9ef51eeCopy full SHA for 9ef51ee
File tree
Expand file treeCollapse file tree
5 files changed
+58
-16
lines changedOpen diff view settings
Filter options
- vlib/v
- ast
- checker
- fmt
- parser
- tests
Expand file treeCollapse file tree
5 files changed
+58
-16
lines changedOpen diff view settings
Collapse file
+7-6Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
407 | 408 | | |
408 | 409 | | |
409 | 410 | | |
| |||
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4297 | 4297 | | |
4298 | 4298 | | |
4299 | 4299 | | |
| 4300 | + | |
| 4301 | + | |
| 4302 | + | |
| 4303 | + | |
4300 | 4304 | | |
4301 | 4305 | | |
4302 | 4306 | | |
| |||
Collapse file
+10-2Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
971 | 974 | | |
972 | | - | |
973 | | - | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
974 | 982 | | |
975 | 983 | | |
976 | 984 | | |
| |||
Collapse file
+28-8Lines changed: 28 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2368 | 2368 | | |
2369 | 2369 | | |
2370 | 2370 | | |
2371 | | - | |
| 2371 | + | |
2372 | 2372 | | |
2373 | | - | |
2374 | | - | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
2375 | 2385 | | |
2376 | 2386 | | |
2377 | 2387 | | |
2378 | 2388 | | |
2379 | 2389 | | |
2380 | 2390 | | |
2381 | 2391 | | |
2382 | | - | |
| 2392 | + | |
| 2393 | + | |
2383 | 2394 | | |
2384 | 2395 | | |
2385 | 2396 | | |
2386 | | - | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
2387 | 2400 | | |
2388 | 2401 | | |
2389 | | - | |
| 2402 | + | |
2390 | 2403 | | |
2391 | 2404 | | |
2392 | 2405 | | |
2393 | 2406 | | |
2394 | 2407 | | |
2395 | 2408 | | |
2396 | 2409 | | |
2397 | | - | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
2398 | 2414 | | |
2399 | 2415 | | |
2400 | 2416 | | |
2401 | | - | |
| 2417 | + | |
2402 | 2418 | | |
2403 | 2419 | | |
2404 | 2420 | | |
| |||
2408 | 2424 | | |
2409 | 2425 | | |
2410 | 2426 | | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
2411 | 2431 | | |
2412 | 2432 | | |
2413 | 2433 | | |
| |||
Collapse file
vlib/v/tests/c_const_u8_test.v
Copy file name to clipboard+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
You can’t perform that action at this time.
0 commit comments