Changeset 2ead704


Ignore:
Timestamp:
Jul 21, 2021, 1:57:58 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
9698690
Parents:
bf5eeb2
Message:

add comment stating assignment expression returns an rvalue for builtin ++?. ?++, --?, ?--

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/prelude/builtins.c

    rbf5eeb2 r2ead704  
    1010// Created On       : Fri Jul 21 16:21:03 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 20 17:31:40 2021
    13 // Update Count     : 128
     12// Last Modified On : Wed Jul 21 13:31:34 2021
     13// Update Count     : 129
    1414//
    1515
     
    7777// implicit increment, decrement if += defined, and implicit not if != defined
    7878
     79// C11 reference manual Section 6.5.16 (page101): "An assignment expression has the value of the left operand after the
     80// assignment, but is not an lvalue." Hence, return a value not a reference.
    7981static inline {
    8082        forall( T | { T ?+=?( T &, one_t ); } )
Note: See TracChangeset for help on using the changeset viewer.