Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/riscv/include Provide __CONCAT, __STRING and ___CONCAT
details: https://anonhg.NetBSD.org/src/rev/13d8e3788c25
branches: trunk
changeset: 983053:13d8e3788c25
user: skrll <skrll%NetBSD.org@localhost>
date: Sat May 01 07:05:07 2021 +0000
description:
Provide __CONCAT, __STRING and ___CONCAT
diffstat:
sys/arch/riscv/include/asm.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r bf933bb144fa -r 13d8e3788c25 sys/arch/riscv/include/asm.h
--- a/sys/arch/riscv/include/asm.h Sat May 01 06:56:41 2021 +0000
+++ b/sys/arch/riscv/include/asm.h Sat May 01 07:05:07 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.5 2020/04/17 14:19:44 joerg Exp $ */
+/* $NetBSD: asm.h,v 1.6 2021/05/01 07:05:07 skrll Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -34,6 +34,11 @@
#define _C_LABEL(x) x
+#define __CONCAT(x,y) x ## y
+#define __STRING(x) #x
+
+#define ___CONCAT(x,y) __CONCAT(x,y)
+
/*
* Define -pg profile entry code.
* Must always be noreorder, must never use a macro instruction
Home |
Main Index |
Thread Index |
Old Index