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/5b8129e16272
branches:  trunk
changeset: 378952:5b8129e16272
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 a9736d2a1baf -r 5b8129e16272 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