From 0b8e7e8897be9fd10fb628b85feecaacccce00d1 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Thu, 28 Nov 2019 14:17:20 +0100 Subject: [PATCH] Update docstring of generate_c --- pystencils/backends/cbackend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pystencils/backends/cbackend.py b/pystencils/backends/cbackend.py index 59d9011d4..9a4095cc0 100644 --- a/pystencils/backends/cbackend.py +++ b/pystencils/backends/cbackend.py @@ -32,9 +32,9 @@ def generate_c(ast_node: Node, with_globals=True) -> str: """Prints an abstract syntax tree node as C or CUDA code. - This function does not need to distinguish between C, C++ or CUDA code, it just prints 'C-like' code as encoded - in the abstract syntax tree (AST). The AST is built differently for C or CUDA by calling different create_kernel - functions. + This function does not need to distinguish for most AST nodes between C, C++ or CUDA code, it just prints 'C-like' + code as encoded in the abstract syntax tree (AST). The AST is built differently for C or CUDA by calling different + create_kernel functions. Args: ast_node: -- GitLab